<li class="list-group-item ">
  <div class="d-flex align-items-center ">
    <img src="{$topic->user->avatar}" class="img-thumbnail" width="50px" alt="图片加载..." />

    <div class="d-flex flex-column ms-2">

      <a href="{:url('User/read',['id'=>$topic->user->id])}" class="text-decoration-none text-success" style="font-size: 13px">{$topic->user->name}</a>
      <div class="align-items-center">
        <i class="fa fa-rss-square text-danger" ></i>
        <small class=" text-secondary ms-1">{$topic->user->email}</small>
      </div>
    </div>
  </div>

  <div class="text-success d-flex justify-content-between align-items-center" style="font-size: 13px">
    {$topic->content}
    {if isMineOpt($topic->user->id)}
    <form action="{:url('Topic/delete',['id' => $topic->id])}" method="post"  class="text-center form-topic"
          onsubmit="return confirm('您是否删除该博文')">
    <input type="hidden" name="_method" value="DELETE"><!--    p8伪装-->
    <button class="btn btn-outline-danger btn-sm" type="submit" >删除</button>
  </form>
    {/if}
  </div>

  <div class="text-end mt-2" style="font-size: 12px">
    <i class="fa fa-clock-o text-danger ms-1" ></i>
    {$topic->create_time}
    <!--                            自动转换为时间戳-->
  </div>
</li>